<%-- 
    Document   : index
    Created on : May 19, 2011, 8:09:19 PM
    Author     : grace
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<title>Cacatúa por Manghoo! </title>
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
<div id="logo">
    <h1><a href="#">Cacatúa </a></h1>
    <p>por Manghoo!</p>
</div>

    
    <%-- CSS --%>
  <style type="text/css">
    .button {
    border: 1px solid #006;
    font: normal 13px Verdana;
    background:#FFD700;
} 
   .button:hover {
    border: 1px solid #006;
    background:	#F0E68C;
    font: normal 13px Verdana;
    }
    
  </style>
<%-- Aqui va la informacion del logo --%>
 <img src="http://localhost:8080/web/logo.png" align=middle>
 <br>
 <br>

<%-- Inicio de sesion o registro --%>
<center>
<FORM action="http://localhost:8080/web/login.jsp" method="post">
<input type="submit" value="Iniciar sesion" name="Login" class="button" />
<input type="submit" value="Registrarse" name="Registrarse" class="button" />
</form>
</center>


    <% if(request.getParameter("Registrarse") != null){
        %>
        
        <%-- Registrarse --%>        
<FORM action="http://localhost:8080/web/login.jsp" method="post">
<P style ="text-align:center">
    
    
<label for="user_name">Nombre</label> <br>
<input id="user_name" name="user[name]" size="30" tabindex="2" 
       type="text" value="" /> <br>
<label for="user_lname">Apellido</label> <br>
<input id="user_lname" name="user[lname]" size="30" tabindex="2" 
       type="text" value="" /> <br>
<label for="user_username">Usuario</label><br>
<input id="user_username" name="user[username]" size="30" tabindex="1" 
       type="text" />  <br>
<label for="user_password">Contraseña</label> <br>
<input id="user_password" name="user[password]" size="30" tabindex="2" 
       type="password" value="" /> <br>
<label for="user_email">Correo electrónico</label> <br>
<input id="user_email" name="user[email]" size="30" tabindex="2" 
       type="text" value="" /> <br>
<input type="submit" value="Ingresar" name="Registrarse" class="button" />
<input type="reset" value="Limpiar" class="button" />

 
</P>
  <% }
       else if (request.getParameter("Login") != null){
           %>
           <%-- LOGIN --%>
<FORM action="http://localhost:8080/web/home.html" method="post">
<P style ="text-align:center">

<label for="user_username">Usuario</label><br>
<input id="user_username" name="user[username]" size="30" tabindex="1" 
       type="text" />
<br>

<label for="user_password">Contraseña</label> <br>
<input id="user_password" name="user[password]" size="30" tabindex="2" 
       type="password" value="" /> <br>
 <input type="submit" value="Ingresar" class="button"></input>
 <input type ="reset" value="Limpiar" class="button"></input>

 
</P>
<%
    }
    %>

 
</html>
